package com.jake.zyt.service;

import com.github.pagehelper.PageHelper;
import com.jake.zyt.constant.ParamConsts;
import com.jake.zyt.mapper.CustomerMapper;
import com.jake.zyt.vo.CustomerVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CustomerService {

    @Autowired
    private CustomerMapper customerMapper;

    public List<CustomerVO> groupAndFilterCustomers(Integer cost) {
        PageHelper.startPage(1, ParamConsts.PAGE_SIZE);
        return customerMapper.groupAndFilterCustomers(cost);
    }
}
